<template>
  <el-carousel class="carousel" :interval="4000" height="300px">
    <el-carousel-item v-for="item in carouselList" :key="item">
      <el-image class="img" :src="item" fit="fill"></el-image>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  props: {
    carouselList: Array
  }
}
</script>

<style lang="scss">
.img{
  width: 100%;
  height: 100%;
}
</style>
